package com.k.demo.service;

import java.util.List;

import com.github.pagehelper.PageInfo;
import com.k.demo.entity.Food;

public interface FoodService {

	List<Food> getAll();
	List<Food> searchFoodByKind(int food_kind_id);
	List<Food> searchFoodByNameAndKind(Food food);
	Food detail(int food_id);
	PageInfo<Food> getpage(int pageNum,int pageSize);
	PageInfo<Food> getpagebykind(int pageNum,int pageSize,int food_kind_id);
	PageInfo<Food> getpagebynameandkind(int pageNum,int pageSize,Food food);
	
	int addFood(Food food);
	int updateFood(Food food);
	int deleteForEach(List<Integer> deletelist);
	int delete(int food_id);
	
	//分页返回排序结果
	PageInfo<Food> getAllByOrderWithPage(int pageNum,int pageSize,String orderBy);
	
	//分页返回查询结果
	PageInfo<Food> getFoodByFoodWithPage(int pageNum,int pageSize,Food food,Double lowestPrice,Double highestPrice,String orderBy);
}
